<?php $this->load->view('header/admin'); ?>
<div id="main">
    <div class="container">
        <div class="span-17 colborder" id="content">
        <?php if (isset($messages)) echo $messages; ?>
            <h3 class="caps">Licenses</h3>
	        <?php if ($licenses): ?>
	           <div class="span-16 last">
                    <div class="box span-5">
                        <p>Click on the name of the license for more information</p>
                        <dl>
                        <?php foreach($licenses as $e): ?>
                            <dt class="caps prepend-top">
                                <?php echo anchor('admin/licenses/see/'.$e->id, $e->issuer.' - '.$e->level, 
                                    'class="license-info'.(($selected == $e->id)? ' selected' : '').'" id="license-'.$e->id.'"')?>&nbsp;
                            </dt>
                            <dd>
                                [ <?php echo anchor('admin/licenses/edit/'.$e->id, 'Edit', 'class="license-edit" id="license-'.$e->id.'"')?> |
                                  <?php echo anchor('admin/licenses/delete/'.$e->id, 'Delete', 'class="license-edit" id="license-'.$e->id.'"')?> ]
                            </dd>
                        <?php endforeach; ?>
                        </dl>
                    </div>
                    <div id="license-details" class="box span-9 last" style="">
	                    <dl>
	                        <dt class="caps">Issuer: </dt> 
	                        <dd id="license-issuer"><?php echo $license->issuer; ?></dd>
                            <dt class="caps prepend-top">Level: </dt>
                            <dd id="license-level"><?php echo $license->level; ?></dd>
	                        <dt class="caps prepend-top">Description: </dt> 
	                        <dd id="license-description"><?php echo nl2br($license->description); ?></dd>
	                    </dl>
                    </div>
                </div>
			<?php endif; ?>
			<div class="span-16">
	        <p><?php echo anchor('admin/licenses/add', 'Add License')?> | <?php echo anchor('admin', 'Admin')?></p>
	        </div>
        </div> <!-- end content -->
        <?php $this->load->view('menu/admin')?>
    </div> <!-- end container -->
</div> <!-- end main -->
<?php $this->load->view('footer/standard');?>
